<template>
	<view class="container">
		<view class="list">
			<view class="item" @click="toUserList">
				<view class="left">
					<view class="title">
						名称名称名称
					</view>
					<view class="remark">
						备注：内容内容内容内容内容内容内容
					</view>
				</view>
				<image :src="$img_path('/mine/r_img.png')" mode="widthFix"></image>
			</view>
			<view class="item">
				<view class="left">
					<view class="title">
						名称名称名称
					</view>
				</view>
				<image :src="$img_path('/mine/r_img.png')" mode="widthFix"></image>
			</view>
		</view>
		
		<view class="bottom-btn">
			<view class="b-box">
				<button @click="$refs.created.open()">创建</button>
			</view>
		</view>
		
		
		<popupBox ref="created" contentBG="#ffffff">
			<view class="popup-con">
				<view class="title">
					创建
				</view>
				<view class="con-check">
					<view class="inp-box">
						<input type="text" placeholder="名称" />
					</view>
					<view class="inp-box">
						<input type="text" placeholder="备注（非必填）" />
					</view>
				</view>
			</view>
		</popupBox>
	</view>
</template>

<script>
	import popupBox from '@/components/popup/popup.vue'
	export default {
		components:{
			popupBox
		},
		data() {
			return {
				
			};
		},
		methods:{
			toUserList(){
				uni.navigateTo({
					url:'/pagesRegion/majorClients/list'
				})
			}
		}
	}
</script>

<style>
	page{
		background-color: #FFFFFF;
	}
</style>
<style lang="scss" scoped>
.container{
	.list{
		.item{
			padding: 20rpx 22rpx 22rpx;
			box-sizing: border-box;
			display: flex;
			align-items: center;
			justify-content: space-between;
			border-bottom: 2rpx solid #EEEEEE;
			.left{
				.title{
					font-weight: bold;
					font-size: 36rpx;
					color: #000000;
					line-height: 50rpx;
				}
				.remark{
					font-weight: 400;
					font-size: 28rpx;
					color: #333333;
					line-height: 40rpx;
					margin-top: 12rpx;
				}
			}
			&>image{
				width: 15rpx;
				height: 23rpx;
			}
		}
	}
	
	.bottom-btn{
		width: 100%;
		height: calc(constant(safe-area-inset-bottom) + 130rpx);
		height: calc(env(safe-area-inset-bottom) + 130rpx);
		.b-box{
			position: fixed;
			bottom: 0;
			left: 0;
			right: 0;
			padding: 0 22rpx;
			padding-bottom: calc(constant(safe-area-inset-bottom) + 20rpx);
			padding-bottom: calc(env(safe-area-inset-bottom) + 20rpx);
			box-sizing: border-box;
			button{
				width: 100%;
				height: 96rpx;
				background: linear-gradient( 135deg, #FFA233 0%, #FB4C4C 100%);
				border-radius: 80rpx;
				font-weight: bold;
				font-size: 36rpx;
				color: #FFFFFF;
				line-height: 96rpx;
			}
		}
	}
}

.popup-con{
	.title{
		text-align: center;
		font-weight: bold;
		font-size: 36rpx;
		color: #000000;
		line-height: 50rpx;
		padding: 28rpx 0 18rpx;
	}
	.con-check{
		padding-bottom: 24rpx;
		.inp-box{
			width: 508rpx;
			height: 100rpx;
			background: #FFFFFF;
			border-radius: 8rpx 8rpx 8rpx 8rpx;
			border: 2rpx solid #B4B4B4;
			margin-bottom: 20rpx;
			input{
				width: 100%;
				height: 100%;
				padding: 0 20rpx;
				box-sizing: border-box;
			}
		}
	}
}
</style>
